package com.tg.base.concurrent.executor;

import java.util.concurrent.*;

/**
 * Created by MagicBook on 2020/2/5.
 */
public class ExecutorTest {

    public static void main(String[] args){
        ForkJoinPool executor = (ForkJoinPool)Executors.newWorkStealingPool();

        ThreadPoolExecutor executorService = (ThreadPoolExecutor)Executors.newCachedThreadPool();

        ThreadPoolExecutor executorService1 = (ThreadPoolExecutor)Executors.newFixedThreadPool(2);

        ScheduledThreadPoolExecutor scheduledExecutorService
                = (ScheduledThreadPoolExecutor)Executors.newScheduledThreadPool(2);



    }
}
